<?php

/* @var $this \yii\web\View */
/* @var $content string */

use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use app\assets\AppAsset;

AppAsset::register($this);
?>

<?php $this->registerCssFile('@web/css/reset.css',['depends'=>['app\assets\AppAsset']]) ?>
<?php $this->registerCssFile('@web/css/top.css',['depends'=>['app\assets\AppAsset']]) ?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?= Html::csrfMetaTags() ?>
    <title><?= Html::encode($this->title) ?></title>
    <?php $this->head() ?>
</head>
<body>
<?php $this->beginBody() ?>
<div class="top">
    <div class="top-wrap clearfix">
        <div class="logo pull-left"><a href="<?= \yii\helpers\Url::to(["site/index"])?>"><img src="<?= \yii\helpers\Url::to("@web/images/logo.png")?>"></a></div>
        <ul class="total-nav pull-right clearfix">
            <li class="pull-left"><a href="<?= \yii\helpers\Url::to(["list/lost"])?>">寻物</a></li>
            <li class="pull-left"><a href="<?= \yii\helpers\Url::to(["list/find"])?>">招领</a></li>
        </ul>
    </div>
</div>
<div class="container">
    <?= Breadcrumbs::widget([
        'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
    ]) ?>
    <?= $content ?>
</div>


<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
